<html>
<head>
<title>ftp Library Package 2.1 for Tcl/Tk help file</title>
</head>
<body bgcolor="#ffffff" text="#000000">
<body>

<p>
<dl>
  <dd>
    <p><font face="Arial,Helvetica" color="#526e9c" size="+2"><b>ftp Library Package 2.1 for Tcl/Tk Manual Pages</b></font></p>
  </dd>

  <dd><font face="Arial,Helvetica" size="+1"><b>COMMAND</b></font></dd>
  <dd><dl>  
    <dd><b>ftp::Type</b><em>&nbsp; handle&nbsp; ?ascii|binary?</em></dd>
    <dd>&nbsp;</dd>
    <dd>

	The <b>ftp::Type</b> command sets the ftp file transfer type either 
	to <em>ascii</em>, <em>binary</em>, or to <em>tenex</em>. In every
        case, also if the type name is unspecified, it returns the current type.

	<p>Only <b>ascii</b> and <b>binary</b> types are currently supported.
        There is some early (alhpa) support for Tenex mode.  The ascii
	type is normally used to convert text files to a format suitable
	for text editors on the platform depended destination machine.
	The binary type allows undisturbed transfers of non-text files,
	such as compressed files, images and executables. </p>

    </dd>
  </dl></dd>

  <dd><font face="Arial,Helvetica" size="+1"><b>EXAMPLE</b></font></dd>
  <dd><dl>
    <dd>
	<pre># get file transfer type
set current_type [ftp::Type $conn]

# set file transfer type
ftp::Type $conn ascii


	</pre>
		
    </dd> 
  </dl></dd> 
</dl>
</p>
<p>
[<a href="index.html">Contents</a>]&nbsp;
[<b>Previous:</b> <a href="fhelp4.html">ftp::Pwd</a>]&nbsp;
[<b>Next:</b> <a href="fhelp6.html">ftp::List</a>]
</p>
<p align="left"><hr noshade size="1"><font face="Arial,Helvetica" size="-1">&copy; 1999 <a href="mailto:Steffen.Traeger@t-online.de">Steffen Traeger</a></font></p>
</body>
</html>
